package com.xn.app.muying.util;

import android.net.Uri;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;

/**
 * Webview处理
 * Created by gaoge on 2017/9/13.
 */

public class MyWebChromeClient extends WebChromeClient{
    // For Android 3.0+
    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType) {
//            if (mUploadMessage != null) return;
//            mUploadMessage = uploadMsg;
//            selectImage();
    }
    // For Android < 3.0
    public void openFileChooser(ValueCallback<Uri> uploadMsg) {
        openFileChooser( uploadMsg, "" );
    }
    // For Android  > 4.1.1
    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {
        openFileChooser(uploadMsg, acceptType);
    }
}
